add setting for database query timeout