Added Database query