deleted sql and added documentation