fixed database input