fixed database default bug