Database table and view implementations.