A better version with module's details added in table, but my DB fucked up - couldnt test it