showing specific error message when database is not connected (in development mode only)