started on unified select code.

the database tables and edit and save code are not completed yet.