fixing dataabse