Login fixed
- Updated BDB library
- Fixed testcode
Changed orders of database dependant items
Merge remote-tracking branch 'realorigin/master'