Lazily create database tables