added migration and database