fix db inserts, add docs for github