Added database login using preferences prescribed in res/dbprops.txt