Decouple operations from pushtx endpoint

Separated pushtransaction and insertdatabase & stubbed sendemail