fixes db methods