fixing schedule layout and working on db