Fix #6 - return error if createdb fails