Fixed stupid database bug