Segregated database class into header and cpp files