Hi bowei,
I tried creating a singleton database handle and I must be doing something wrong. The Application was hanging and the Speedy_backend instance created at this time was running for hours. I removed my attempt at singleton object and added fctnl mentioned in the Speedy docs and everything is fine.
Thanks for your suggestion. It helped me approach the issue properly.