Implemented basic database methods