refactor to use ark
using link resource instead of the debian tools
using :create :grant for database user