add createdb method