Trying to fix problem with empty database.