Implemented Update and Delete Data in database.

Signed-off-by: Chan Jun Wei <chanjunweimy@gmail.com>