add loading events from sqllite3 to serve query