Saves final estimate in database

added code to save the final estimate in the database

Authors: lhunker