dealing with DB problem