Found the problem. Becuase this is a PRODUCTION build (which I'm not used to) we didn't get any debugging logs i believe. So the problem was initially that the code i produced in the application didn't handle a empty database correctly. After adding some catches and default values to handle this it worked fine.