FIX: Use db.Query
CreateMapsFromRows func
remove trailing lines
Fix CreateMapsFromRows