Changed db access
Added procents to db_queries