Did some database coding