added states information to db