Added DB support for login