new sql helper method
new database helper method