logging in primes database.