First sceleton of DatabaseCode. Untested