Functions to push data from app to db