Add maturities to database

Closes #596.