chaging fethArray to fetch object, adding ability to merge query result into object