Set up postgresql database.

Next will sort out seed and then work on attainment records