add process exit
using time on db