adjust the db_datastore lookup
enforce the check on the permissions structure
Merge pull request #11 from simod/vanilla_geoserver

fix datastore and permissions check