updated database config to use array