createdb fix bug