Templates for DB implementations, db scheme