Added SQL statements. Still Need to test though