database stuff inside loginTab.js

Signed-off-by: Aman <amanb014@gmail.com>