add new feature to connect-db
slightly change db.scm
updated configure
fix Makefile.in for precompile