Fix error encoding of create dabatase