Use [] instead of () for array queries and mkdir bugfix