Fixed: remove -w parameter of createdb and use DEVNULL in STDIN instead

-w parameter of createdb doesn't exist for PostgreSQL <= 8.3. Therefore,
to prevent the process to wait on STDIN if a password is required, we
use DEVNULL instead.

Note: DEVNULL must be used in random access