Fixed the dberror and updated gitignore