added credit column to db