Added createTilesFromDb