Model and Database access separation