connect_db and init_db added