added integration test for postgres
updated insert sql so that placeholders match what postgres expects
moved entities and record test functionality into their own packages