added connection status to DatabaseHandler