More database code.