add exec in database method