fixed database code