Modularized the last push (Tables and DB init) and added comments