Added Database connection

Added Database connection and test code for it.