database drawing