Updated icon
Updated query sql
Updates queries and error handling