move bni.rb out of models and created databse digrams