app: updating database querying still not working well

need to check loginactivity and query in dbadapter