Added various GUI elements and started to create intermediate layer for
interaction between GUI and database.