Added abstract class which have all abstract function needed for adding new elements to database. Added some function needed for adding new elements to main window.