config db and add gemfiles