Added In4m tests and implemented basic db connectivity.