Attemp to fix a bug which occurs when creating the DB