Fixed bug caused by typo.
Fixed properties for BDB.
Added libpqxx variables to configure script.
Added missing DB variable.
Remove wrong flag usage.