Adapted database login