It is not an answer but it is too long for comment.
the data in the database appears with points
This suggests a deep confusion, which matters to clarify. We are talking, I suppose, of numerical data with a decimal point [*]. Now, what does that mean that "in the database appear with points"?
The first thing you should clarify (te) is: how is the data stored in the DB? As a string (string of characters = text) or as a numeric type (DECIMAL, NUMERIC, REAL, etc)?
If the first thing, we are in design problems. The DB must use the "correct" data type.
If the second, then it's fine, but your concern that "appears the same on the db" that on the website does not make much sense. What "appears in the DB" is simply what your application shows you are using to view the DB (eg, a desktop client such as MySQL Workbench, or a web client such as PhpMyAdmin). It is fine that the "locale" of that application according to your preference, but that has NOTHING to do with your web page.
[*] Note: a credit card number, for example, or a telephone number or a postal code, are not strictly numeric data; they are only texts, whose characters are restricted to decimal digits. The numerical data are those that, for example, it makes sense to add and subtract.