[ticket/416] Add modules database handler

B3P-416