Add support for ARRAYs in DBs

Signed-off-by: Michael Buesch <m@bues.ch>