validation, db inserts