Database access module and corresponding models