first version for postgresql
 dynamic username