func SendEvent(db *sql.DB, plate string, plate_image string, frame_image string, timestamp *time.Time) error {
	query := "INSERT INTO events (time, camera, plate, plate_image, frame_image, site) " +
		"VALUES (($1), ($2), ($3), ($4), ($5), ($6))"
	_, err := db.Exec(query, timestamp, config.Opts.Camera, plate, plate_image, frame_image, config.Opts.Site)
	if err != nil {
		return err
	}
	return nil
}
// SendEvent sends the event data to the remote Postgres database
SendEvent sends the event data to the remote Postgres database
// SendEvent sends the event data to the remote Postgres database
func SendEvent(db *sql.DB, plate string, plate_image string, frame_image string, timestamp *time.Time) error {
	query := "INSERT INTO events (time, camera, plate, plate_image, frame_image, site) " +
		"VALUES (($1), ($2), ($3), ($4), ($5), ($6))"
	_, err := db.Exec(query, timestamp, config.Opts.Camera, plate, plate_image, frame_image, config.Opts.Site)
	if err != nil {
		return err
	}
	return nil
}
func SendEvent ( db * sql . DB , plate string , plate_image string , frame_image string , timestamp * time . Time ) error { query := " " + " " _ , err := db . Exec ( query , timestamp , config . Opts . Camera , plate , plate_image , frame_image , config . Opts . Site ) if err != nil { return err } return nil }
SendEvent sends the event data to the remote Postgres database
SendEvent sends the event data to the remote Postgres database