Minor change to scope of DB in Login