[Optimize] SQL Queries : Remove joins from account table

[Optimize] SQL Queries to remove non-essential account tables and replace with queries based on username. on share table