first changes regarding postgresql database