add util methods to models package import
Fix chat sending

- add extra contexty things for listener to be able access flask globals and db