parser reading constants from db

Parser takes a connection string to db and reads the constants directly.

It doesn't write directly, the parser will need to be passed the match ID as well to do that.