Refactor methods that add entries to SQLite and MySQL
Merge and fix MySQL Manager