move some stuff and added base sql file
added view helper flipflop?