Simple database framework