CRUD operations - database layer.
Please check comments.