Database initial creation fix. Requires postgres 9