fixed silly database bug