Fix stupid database bug