Pruning, working login sequence from DB