Add db connection layer + queries for map instance