webApp added  - middleware to communicate with the database