implemented fetching data from database
implemented fetching data from database
added propmt for asking diagram id