finished 4, database init and models