Added build tables method to dbi.rb
minor file changes
add foundation files and basic sign in