Add autocommit

Add autocommit support to project, using PSR-4 exemples