working twitter and db stuff