Without looking at your code, I can't say if it's because of the multiple users causing corrupted data, or if it's the code itself.
Regardless, in your type of scenario with a database being accessed by multiple users over the network, it is a GOOD idea to split your database into a front-end...