Added more prints (debug); fixed layer naming issues (postgres->postgresql).