Home page SQL issue fixed

Signed-off-by: Dileep Mishra <mishradileep@gmail.com>