handle arbitrary version names
store line numbers in array key
prepare sql statements for execution