added type check to gcmIntentservice
fixed db onCreate