Better handling and checking of databases