Saving data to SQLite database (WIP)