Tided code for loading layers' configs and tile creation using database