Updated Makefiles and configure.ac for Sophia DB