Fix postgresql createdb issue