Forked the database save process