start on making bound db vars carry their types