implemented init, create, load and insert functionality.