Code additions and changes inside class.database for escape str. inside build_mysql_query.