added sql and some basic db classes