Rails server first commit.

Fixed a few bugs with the local database.