[WIP] Add conditions manager

We should really be using the `sql_build_array('INSERT` here too.