refactored config fields, moved to package
Added database executor
Create database connection in main method