db layer
database CRUD layer - some more tasks pending, check comments.
database CRUD layer - some tasks left, check comments.