edited the main layout, added a sql helper class