Optimized sql queries for current chart
remove gems cache
Added user login/logout