now with database..
now the database is working, even when the mail body contains html and ' " .. i hate special chars...