magicrails app using postgresql