Separated the database management from the pwd manager