fix some bugs / move password database to static place