start of mysql / extract stuff into base trait for psql/mysql