crud and database handling added