Planner.cpp: Set up implementation of database

Created functions that output the correct grammar for the parser.