a tip for programming when dealing with databases