fixed database access / trying fixing login