added alchemy interface and writing to db
added alchemy interface