Working connection of data storage from web app to database