added new member functions
implemented sql part of these modules. needs to improve efficienc and safecty (injections)