Changed COSM parser sql queries