show proper exception on database connection fail