test with database from php array