Changed ip to database