updated database class

Added a method for changing text in a table to utf 8 format.