Database created and Favorite functionality added to fetch images from
database.