added basic sql calls