Hi Eric,
Thank you for your reply. I checked the database, and now I think I know, what the problem is. Embarrasssing. I am updating the database with new products daily. When I import the database on the remote server, all tables are dropped, including order details and orders, and they get replaced with the tables I have on my local server. I will do some more testing, but I am very sure, this is the problem.