Add methods to init and migrate the db, still to be implemented