Fixed database and version error.