Backend Rails app for Smart Pretion Android App