added database classes, options tables, functionalities and connected to the plugin