Everything was looking good until I added the DBRequestManager, module then I got the log error Unknown member: stopautomaticforeground in red.
When do you get this? When compiling? Here on my end, everything compiles fine (I had to comment out anything to do with AutoCall). Where are you installing your additional libraries? In the "Additional Libraries" folder or directly into the folder located under Program Files?
My setup:
Win 10 Pro (1909)
SDK Platform-Tools 27.0.1
B4A 9.5
I never touch the libraries folder in Program Files. All additional libraries are in the "Additional Libraries" folder configured in the IDE.
Note #1: Since you are using jRDC2, no #AdditionalJar: mysql-conectore-java-5.1.48-bin.jar should be required on the client side.
Note #2: Be careful with Wait For in Activity_Create. Activity_Resume will be called (most cases) before the Wait For finishes in Activity_Create. May create unexpected results.