   constructor: () ->
 
   connect: (cb) ->
-    connectionString = process.env.DATABASE_URL or 'postgres://postgres:h0l1b4by@localhost:5432/lendme'
+    connectionString = process.env.DATABASE_URL or 'postgres://postgres:root@localhost:5432/lendme'
     client = new (pg.Client)(connectionString)
     client.connect()
     cb? client

  constructor: () ->

  connect: (cb) ->
    connectionString = process.env.DATABASE_URL or 'postgres://postgres:h0l1b4by@localhost:5432/lendme'
    client = new (pg.Client)(connectionString)
    client.connect()
    cb? client

        query = client.query "SELECT * From public.\"Request\" AS R INNER JOIN public.\"Community\" AS C ON R.user_id = C.user_id INNER JOIN public.\"Space\" AS S ON S.spa_id = R.spa_id WHERE R.req_id = '#{params.req_id}'", (err, res) ->
        if not err
          params2 =  
            adm_id: params.adm_id
            sch_date: res.rows[0].req_date
            sch_capacity: res.rows[0].spa_capacity
            type_sch_id: params.type_sch_id
            com_id: res.rows[0].com_id
            time_id: res.rows[0].time_id
            spa_id: res.rows[0].spa_id
            ins_id: res.rows[0].ins_id
          this.req_to_sch client , params2 , (resp) -> ## es necesario escribir algo mas aca?
            if resp
              cb? resp
