Added Database CRUD functions