Added working db connection to state post form