schema and query builds and connects

hmmm

filter ids

cleanup variables

add some idnexes n shit

lets test this

builds and connects