Started on C++ database layer