Fixes db in production builds