Deleted unnecessary sql file and improved sql