Restructured some classes
Added database connection file