Added exception handling and Procfile automatic db:migration