image pushing and fetching from database