added registration support. also add the database file and migration folder for easy test. this is not a production project anyway.