updated permissions
Updated SQL queries to imposm style