database seed and edge case fixes