send data to database