removed or added correct defualts for each of the columns
added the db_schema.json to the makefile so the autogenerated files are re-created when it changes
added a second indetical bind to the rule lookup query
This allows the actual row of the database to be found instead of pulling every row with the same version as
the max version of the row we are actually looking for;
Forgot an = in the if statement to check if there are no rows