Updated storing, modals, reset, tootltips, db

Restructured some code, changed the database schema, fixed formhandler
(wasnt working before), adding citation storing for all different
formtypes and updated the database to work