database connection. saves/updates all data
fix typos
utf-8 encoding