conect connectRails and db_sample