Layout is now connected to db
db migrations are now working
making layout work with database