Database changes Huge

include add, update, delete, getAll functionality