added updateDatabaseWithParameters function

changed markAsRead/Unread to use said function