check status of database connection on /api/