fixed: app crashed when deployed to aws/mysql