add a basic way to store database access

more or less a test. but will come handy later...