db connection test fix