Use data from database, instead of dummy data.
More readings.
Code refactoring.