Fixed #21477 -- Renamed pre/post_migrate argument 'db' to 'using'.

This commit also reintroduces pre/post_syncdb as their own signals
(rather than being aliases to pre/post_migrate) to offer a proper
deprecation cycle with warnings.

Thanks to trac-user akaariai for the report and to loic84 for code