Init Rails
Updated for postgresql
Added Devies and Types