Profile update, add Favorite viewpager templeate

1. Update Profile's connection to database and the link to favorite.
2. Add viewpager's template into favorite.
3. Can switch between pages and get data from DB.