working databasehelper. error depending on Ping implementation