began writing component to connect to database.