Catch exception if there is a problem with the DB

For exemple when I use the command to create the database, we shouldn't have a db error :)
How to install
Create an interface instead of using the repository directly