added memory function to DBLogin