fixed database submission, works now