Made reminder_loop into a daemon, added init_database for creating the database, moved database