Added support for setting a sequence's current or next value as a default value.
Refactored SequenceFunction into SequenceNextValueFunction and SequenceCurrentValueFunction.
Both now extend DatabaseFunction.
Added method to database to generate the real value for a database function.
Added tests for the new functionality.