database trial and error