Custom modules for database connection and keypair generation