1. Change save method for pdo in db.php
2. change base route to key and val paire