Created tables and connected with database