set up parser to interact with database