database is object not array