some first basic (ugly as hell) mysql foo