Successfully able to extract information from database to edit it