Corrects path to database.