edit signin error DB query