wrote crud and migration of database