CreatingDb functions

1. Cleaning the db
2. Adding covers
3. Closing