more work on the layout
starting work on database access