Added basic db operations